package org.tulkas.log;

import java.util.Locale;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.tulkas.base.ITulkasApplicationContext;
import org.tulkas.ext.ExtensionManager;
import org.tulkas.ext.IExtension;
import org.tulkas.ext.IExtensionPoint;

/**
 * @author <a href="mailto:tulkas.web@gmail.com">Tulkas</a>
 *
 */
@Controller
@RequestMapping("/logs")
public class LogController {
	@Autowired
	private ITulkasApplicationContext applicatoinContext = null;

	@RequestMapping(method = RequestMethod.GET)
	public String query(Map<String, Object> model,
			@RequestParam(value = "param1", required = false) String param,
			@RequestParam(value = "param2", required = false) String param2) {
		//		System.out.println(applicatoinContext.getMessage("aaa", null, Locale
		//				.getDefault()));
		//		System.out.println(applicatoinContext.getMessage("aaa", null,
		//				Locale.FRANCE));
		//		System.out.println(applicatoinContext.getMessage("ccc", null, Locale
		//				.getDefault()));
		//		System.out.println(applicatoinContext.getMessage("ccc", null,
		//				Locale.FRANCE));
		//		applicatoinContext.refresh();
		return "logs4";
	}

}
